﻿/*=====================================================================================
	TASK 3:                                                    {Conditional Statements}
	Write a program that finds the biggest of three integers using nested if statements 
=====================================================================================*/

using System;

class BiggestOfThreeIntegers
{
    static void Main()
    {
        int firstNum, secondNum, thirdNum;

        Console.Write("first number= ");
        firstNum = int.Parse(Console.ReadLine());
        Console.Write("second number=");
        secondNum = int.Parse(Console.ReadLine());
        Console.Write("third number= ");
        thirdNum = int.Parse(Console.ReadLine());

        if (firstNum == secondNum && secondNum == thirdNum)
        {
            Console.WriteLine("The tree numbers is equal");
        }
        
        else if (firstNum >= secondNum && firstNum >= thirdNum)
        {
            Console.WriteLine("The biggest number is:{0}", firstNum);
        }
        else if (secondNum >= firstNum && secondNum >= thirdNum)
        {
            Console.WriteLine("The biggest number is:{0}", secondNum);
        }
        else
        {
            Console.WriteLine("The biggest number is:{0}", thirdNum);
        }
    }
}

